.class public Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

.field private b:Landroid/widget/LinearLayout;

.field private c:Landroid/widget/LinearLayout;

.field private d:Lcom/waiqin365/lightapp/view/NoNetView;

.field private e:Landroid/widget/TextView;

.field private f:Ljava/util/List;

.field private g:Lcom/waiqin365/lightapp/visit/b/bb;

.field private h:J

.field private i:I

.field private j:Lcom/waiqin365/base/db/seniorvisitsubmit/f;

.field private k:Landroid/os/Handler;

.field private l:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const/4 v0, -0x1

    iput v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->i:I

    invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/UUID;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->l:Ljava/lang/String;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;)Lcom/waiqin365/base/db/seniorvisitsubmit/f;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->j:Lcom/waiqin365/base/db/seniorvisitsubmit/f;

    return-object v0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->f:Ljava/util/List;

    return-object v0
.end method

.method private b()V
    .locals 2

    const v0, 0x7f0c0c4f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0c51

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v1, 0x7f0801b8

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0c52

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->e:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->e:Landroid/widget/TextView;

    const v1, 0x7f0802e6

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0d19

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->b:Landroid/widget/LinearLayout;

    const v0, 0x7f0c0d1a

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->c:Landroid/widget/LinearLayout;

    const v0, 0x7f0c0d1b

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->a:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    const v0, 0x7f0c00cb

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/NoNetView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->d:Lcom/waiqin365/lightapp/view/NoNetView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->d:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/NoNetView;->a()V

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;)Lcom/waiqin365/lightapp/visit/b/bb;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->g:Lcom/waiqin365/lightapp/visit/b/bb;

    return-object v0
.end method

.method private c()V
    .locals 6

    const/4 v5, 0x6

    const/16 v4, 0x8

    const/4 v3, 0x0

    invoke-static {p0}, Lcom/waiqin365/base/db/seniorvisitsubmit/g;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/seniorvisitsubmit/g;

    move-result-object v0

    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v1

    invoke-virtual {v1, v5}, Ljava/util/Calendar;->get(I)I

    move-result v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/seniorvisitsubmit/g;->b(Ljava/lang/String;)Z

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->e()V

    invoke-static {p0}, Lcom/waiqin365/base/db/seniorvisitsubmit/g;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/seniorvisitsubmit/g;

    move-result-object v0

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v1

    invoke-virtual {v1, p0}, Lcom/waiqin365/base/login/mainview/a;->i(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v2

    invoke-virtual {v2, v5}, Ljava/util/Calendar;->get(I)I

    move-result v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/base/db/seniorvisitsubmit/g;->a(Ljava/lang/String;Ljava/lang/String;)Z

    invoke-static {p0}, Lcom/waiqin365/base/db/seniorvisitsubmit/g;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/seniorvisitsubmit/g;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/db/seniorvisitsubmit/g;->a()Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->f:Ljava/util/List;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->f:Ljava/util/List;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->d:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->d:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->e:Landroid/widget/TextView;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    new-instance v0, Lcom/waiqin365/lightapp/visit/b/bb;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->f:Ljava/util/List;

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/lightapp/visit/b/bb;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->g:Lcom/waiqin365/lightapp/visit/b/bb;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->a:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->g:Lcom/waiqin365/lightapp/visit/b/bb;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setAdapter(Landroid/widget/BaseAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->a:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    iput v3, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->i:I

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->f()V

    goto :goto_0
.end method

.method private d()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/visit/gd;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/visit/gd;-><init>(Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->k:Landroid/os/Handler;

    return-void
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->g()V

    return-void
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->i:I

    return v0
.end method

.method private e()V
    .locals 6

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/fiberhome/gaea/client/b/a/a;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "submitcache/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {}, Lcom/fiberhome/gaea/client/d/k;->c()J

    move-result-wide v2

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {v1}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v1

    const/4 v0, 0x0

    :goto_0
    if-eqz v1, :cond_1

    array-length v4, v1

    if-ge v0, v4, :cond_1

    aget-object v4, v1, v0

    invoke-virtual {v4}, Ljava/io/File;->lastModified()J

    move-result-wide v4

    cmp-long v4, v4, v2

    if-gez v4, :cond_0

    aget-object v4, v1, v0

    invoke-virtual {v4}, Ljava/io/File;->delete()Z

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method

.method static synthetic f(Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;)I
    .locals 2

    iget v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->i:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->i:I

    return v0
.end method

.method private f()V
    .locals 5

    const/4 v4, 0x0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->h:J

    sub-long/2addr v0, v2

    const-wide/16 v2, 0x7d0

    cmp-long v0, v0, v2

    if-gez v0, :cond_0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->h:J

    :goto_0
    return-void

    :cond_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->h:J

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setEnabled(Z)V

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->showProgressDialog(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->g:Lcom/waiqin365/lightapp/visit/b/bb;

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/visit/b/bb;->a(Z)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->g()V

    goto :goto_0
.end method

.method private g()V
    .locals 5

    const/4 v2, 0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_4

    iget v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->i:I

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->f:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->f:Ljava/util/List;

    iget v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->i:I

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/seniorvisitsubmit/f;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->j:Lcom/waiqin365/base/db/seniorvisitsubmit/f;

    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->j:Lcom/waiqin365/base/db/seniorvisitsubmit/f;

    invoke-virtual {v1}, Lcom/waiqin365/base/db/seniorvisitsubmit/f;->d()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->f:Ljava/util/List;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->j:Lcom/waiqin365/base/db/seniorvisitsubmit/f;

    invoke-interface {v0, v1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    invoke-static {p0}, Lcom/waiqin365/base/db/seniorvisitsubmit/g;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/seniorvisitsubmit/g;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->j:Lcom/waiqin365/base/db/seniorvisitsubmit/f;

    invoke-virtual {v1}, Lcom/waiqin365/base/db/seniorvisitsubmit/f;->d()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/seniorvisitsubmit/g;->a(Ljava/lang/String;)Z

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->g()V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->j:Lcom/waiqin365/base/db/seniorvisitsubmit/f;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/seniorvisitsubmit/f;->d()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, p0}, Lcom/fiberhome/gaea/client/d/c;->a(Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Lorg/json/JSONObject;->keys()Ljava/util/Iterator;

    move-result-object v3

    :goto_1
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v0, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_1
    const-string/jumbo v0, "1"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->j:Lcom/waiqin365/base/db/seniorvisitsubmit/f;

    invoke-virtual {v2}, Lcom/waiqin365/base/db/seniorvisitsubmit/f;->e()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/v;

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v2

    invoke-virtual {v2, p0}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v2, v1}, Lcom/waiqin365/lightapp/visit/a/a/v;-><init>(Ljava/lang/String;Ljava/util/HashMap;)V

    new-instance v1, Lcom/waiqin365/lightapp/visit/a/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->k:Landroid/os/Handler;

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/lightapp/visit/a/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/visit/a/c;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/visit/a/b;->start()V

    goto :goto_0

    :cond_2
    const-string/jumbo v0, "visitData.token"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->l:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/y;

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v2

    invoke-virtual {v2, p0}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v2, v1}, Lcom/waiqin365/lightapp/visit/a/a/y;-><init>(Ljava/lang/String;Ljava/util/HashMap;)V

    new-instance v1, Lcom/waiqin365/lightapp/visit/a/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->k:Landroid/os/Handler;

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/lightapp/visit/a/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/visit/a/c;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/visit/a/b;->start()V

    goto :goto_0

    :cond_3
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->dismissProgressDialog()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->g:Lcom/waiqin365/lightapp/visit/b/bb;

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/visit/b/bb;->a(Z)V

    goto/16 :goto_0

    :cond_4
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->dismissProgressDialog()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->a()V

    goto/16 :goto_0
.end method

.method private h()V
    .locals 2

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->finish()V

    const v0, 0x7f040020

    const v1, 0x7f040023

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->overridePendingTransition(II)V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 3

    const/16 v2, 0x8

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->d:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    return-void
.end method

.method public onBackPressed()V
    .locals 0

    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onBackPressed()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->h()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->h()V

    goto :goto_0

    :pswitch_2
    const/4 v0, 0x0

    iput v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->i:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->g:Lcom/waiqin365/lightapp/visit/b/bb;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/b/bb;->c()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->f()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c0c4f
        :pswitch_1
        :pswitch_0
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f0302a7

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->setContentView(I)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->b()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->d()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitSendQueueActivity;->c()V

    return-void
.end method
